package com.fox.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fox.domain.ResponseResult;
import com.fox.domain.dto.AddArticleDto;
import com.fox.domain.dto.ArticleDto;
import com.fox.domain.entity.Article;
import com.fox.domain.vo.PageVo;
import com.fox.domain.vo.SysArticleVo;

public interface ArticleService extends IService<Article> {

    ResponseResult hotArticleList();

    ResponseResult articleList(Integer pageNum, Integer pageSize, Long categoryId);

    ResponseResult getArticleDetail(Long id);

    ResponseResult updateViewCount(Long id);

    ResponseResult add(AddArticleDto articleDto);

    PageVo selectArticlePage(Article article, Integer pageSize, Integer pageNum);

    SysArticleVo getInfo(Long id);

    void edit(ArticleDto articleDto);
}
